package com.athuiju.fenxiaoback.controller;


import com.athuiju.fenxiaoback.entity.TbSpu;
import com.athuiju.fenxiaoback.entity.TbSpuDetail;
import com.athuiju.fenxiaoback.entity.vo.RegisterVo;
import com.athuiju.fenxiaoback.entity.vo.SpuInfoVo;
import com.athuiju.fenxiaoback.service.TbSkuService;
import com.athuiju.fenxiaoback.service.TbSpuService;
import com.athuiju.fenxiaoback.utils.R;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 * spu表，该表描述的是一个抽象性的商品，比如 iphone8 前端控制器
 * </p>
 *
 * @author athuiju
 * @since 2021-06-30
 */
@Api(description="商品管理",tags = "商品管理")
//@CrossOrigin //11
@RestController
@RequestMapping("/fenxiaoback/tb-spu")
public class TbSpuController {

    //@Autowired
    //TbSpuService spuService;
    //
    //@GetMapping("/test01/{skuid}")
    //public R test01(@PathVariable String skuid){
    //    SpuInfoVo skuInfoBySkuId = spuService.getSkuInfoBySkuId(Long.parseLong( skuid));
    //    return R.ok().put("data",skuInfoBySkuId);
    //}










}

